import type { RoleData } from '../user/type'

export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
// 角色列表
export type Role = RoleData

export type RoleList = Role[]

export interface RoleListResponseData extends ResponseData {
  data: {
    records: RoleList
    total: number
  }
}

// 菜单列表
export interface Menu {
  id: string
  pid: string
  name: string
  level: string
  children?: MenuList
  select: boolean
}

export type MenuList = Menu[]

export interface MenuListResponseData extends ResponseData {
  data: MenuList
}
